import { View, Text, StyleSheet, TouchableOpacity } from 'react-native';
import { useNavigation } from '@react-navigation/native';
export default () => {
  const navigation = useNavigation();
  return (
    <View style={styles.container}>
      <TouchableOpacity onPress={() => navigation.navigate('HistoryScreen')}>
        <Text>点击跳转到搜索历史</Text>
      </TouchableOpacity>
    </View>
  );
};``

const styles = StyleSheet.create({
  container: {
    flex: 1,
    marginTop: 30,
  },
});
